#!/usr/bin/python

class WykopRespNotification:
    
    def _setData(self, Data):
        
        self.author             = Data['author']
        self.author_avatar_med  = Data['author_med']
        self.author_avatar_lo   = Data['author_lo']
        self.author_group       = Data['author_group']
        self.date               = Data['date']
        self.body               = Data['body']
        self.type               = Data['type']
        self.entry              = Data['entry']
        self.link               = Data['link']
        self.group              = Data['group'] # DEPRECATED
        self.comment            = Data['comment']
        self.new                = Data['new']
        
    def _normalizeData(self, Data):

        Obj = WykopRespNotification()
        Obj._setData(Data)
        return Obj
    
    def _normalizeDatatoList(self,Data):
        List = []
        for El in Data:
            Obj = WykopRespNotification()
            Obj._setData(El)
            List.append(Obj)
        return List